.text
.section .rodata
.LC0:
    .string "in main function of main.c file, and test_global_var is %d\n"

.text
.globl main
.type main, @function
main:
    addi sp, sp, -16
    sd ra, 8(sp)
    sd s0, 0(sp)

    call extern_f
    lui a5, %hi(test_global_var)
    addi a6, a5, %lo(test_global_var)
    lw a5, 0(a6)
    addiw a5, a5, 1
    sw a5, 0(a6)
    lw a1, 0(a6)
    lui a5, %hi(.LC0)
    addi a0, a5, %lo(.LC0)
    call printf

    ld ra, 8(sp)
    ld s0, 0(sp)
    addi sp, sp, 16
    jr ra